home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / FSCREEN.DMO < prev    next >
Text File  |  1996-07-04  |  4KB  |  62 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   FSCREEN .DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20. $INCLUDE "DAS-NB02.INC"   ' the mouse routines are here
  21. $INCLUDE "DAS-NBT0.INC"   ' mouse aware text routines
  22. $INCLUDE "DAS-NBT1.INC"   ' the other text routines
  23.  
  24. COLOR 7,0
  25. CLS
  26.  
  27. ? "┌───────────────────────────────────────────────────────────────────────
  28. ? "│ fSCREEN? ( Row?, Col?, Which? )
  29. ? "├───────────────────────────────────────────────────────────────────────
  30. ? "│ PURPOSE: read screen data for one character space
  31. ? "│  PARAMS: Row?   row
  32. ? "│          Col?   column
  33. ? "│          Which? = 0 RETURNS ASCii for the character
  34. ? "│                 = 1 RETURNS color attribute         ( 0 -> 255 )
  35. ? "│                 = 2 RETURNS foreground color        ( 0 ->  15 )
  36. ? "│                 = 3 RETURNS background color        ( 0 ->  15 )
  37. ? "│    NOTE: the function returns 255 if there was an error which is
  38. ? "│          much less common than ZERO and is an illegal value for
  39. ? "│          the 2 parameters that are unique to this function.
  40. ? "└───────────────────────────────────────────────────────────────────────
  41. ?
  42. ?
  43. ?                                                       '┌──────────────────
  44. fMouseSetup 0                                           '│ using the mouse
  45. MouseON                                                 '│ so turn it on
  46.                                                         '│
  47. Row? = 16                                               '│ testing row
  48. Col? = 1                                                '│ change this
  49. MouseLOCATE Row?, Col?                                  '│ locate mouse over
  50.                                                         '│   the test area
  51.                                                         '│
  52. Tprint Row?, 1, "H ELLO WORLD", 31                     '│ print test string
  53. PRINT USING "READING: Row ##  Col ##"; Row?, Col?       '│ display test addr
  54. PRINT                                                   '│
  55. PRINT USING " CHARACTER: ##"; fSCREEN?( Row?, Col?, 0 ) '│ character value
  56. PRINT USING "  ATTRIBUE: ##"; fSCREEN?( Row?, Col?, 1 ) '│ attribute
  57. PRINT USING "FOREGROUND: ##"; fSCREEN?( Row?, Col?, 2 ) '│ foreground
  58. PRINT USING "BACKGROUND: ##"; fSCREEN?( Row?, Col?, 3 ) '│ background
  59. DELAY 2 : MouseOFF                                      '│ turn mouse off
  60. PRINT                                                   '│
  61. PRINT "THE MOUSE IS NOW OFF";                           '│ so tell the world
  62.                                                         '└──────────────────